package enemy.actions;

import enemy.Enemy;

public class Wait implements Action {
	
	private int maxTicks;
	private int currentTick;
	
	public Wait(int ticks) {
		this.maxTicks = ticks;
		this.currentTick = 0;
	}

	@Override
	public boolean execute(Enemy enemy) {
		currentTick++;
		if(currentTick==maxTicks) {
			currentTick = 0;
			return true;
		}
		return false;
	}

}
